package com.example.administrator.social.model;


import android.os.Parcel;
import android.os.Parcelable;

import com.example.administrator.social.view.indexbar.bean.BaseIndexPinyinBean;

import java.io.Serializable;
import java.util.function.Predicate;

/**
 * Created by Administrator on 2018/9/13 0013.
 */

public class Contact extends BaseIndexPinyinBean implements Serializable {
    private int id;
    private String name;
    private String nickName;
    private String phone;
    private String email;
    private String address;
    private String age;
    private String sex;
    private String headerImage;
    private String signature;
    private String remarks;
    private boolean isFriend;
    private boolean isTop = false;

    public Contact() {
    }

    public Contact(String name, String headerImage, boolean isTop, String baseIndexTag) {
        this.name = name;
        this.headerImage = headerImage;
        this.isTop = isTop;
        setBaseIndexTag(baseIndexTag);
    }

    public Contact(int id, String name, String nickName, String phone, String email, String address, String age, String sex, String headerImage, String signature, String remarks, boolean isFriend, boolean isTop) {
        this.id = id;
        this.name = name;
        this.nickName = nickName;
        this.phone = phone;
        this.email = email;
        this.address = address;
        this.age = age;
        this.sex = sex;
        this.headerImage = headerImage;
        this.signature = signature;
        this.remarks = remarks;
        this.isFriend = isFriend;
        this.isTop = isTop;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getHeaderImage() {
        return headerImage;
    }

    public void setHeaderImage(String headerImage) {
        this.headerImage = headerImage;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public boolean isFriend() {
        return isFriend;
    }

    public void setIsFriend(boolean isFriend) {
        this.isFriend = isFriend;
    }

    public boolean isTop() {
        return isTop;
    }

    public void setIsTop(boolean isTop) {
        this.isTop = isTop;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public String getTarget() {
        return phone;
    }

    @Override
    public boolean isNeedToPinyin() {
        return !isTop;
    }


    @Override
    public boolean isShowSuspension() {
        return !isTop;
    }
}
